from typing import Annotated

from fastapi import Depends, FastAPI

import api.service.user_llm_service as user_llm_service
from api.vo.form.user_llm_form import UserLLMForm


async def save_user_llm(user_value: UserLLMForm):
    return user_llm_service.save_user_llm(user_value=user_value)

async def get_user_llm_by_user_id(user_id: str = "123"):
    return user_llm_service.get_user_llm_by_user_id(user_id=user_id)


def add_user_llm_routes(app: FastAPI):
    app.post("/user_llm/save", summary="保存用户LLM设置", description="保存用户LLM设置")(save_user_llm)
    app.get("/user_llm/get", summary="获取用户LLM设置", description="获取用户LLM设置")(get_user_llm_by_user_id)